package com.justech.eat.service.event;

import com.justech.eat.entity.Order;
import com.justech.eat.entity.OrderDetail;
import lombok.Getter;
import lombok.Setter;
import org.springframework.context.ApplicationEvent;

/**
 * @program: eat-service
 * @description: 就餐异常事件
 * @author: feifei.li
 * @create: 2020-06-08 17:33
 **/
@Getter
@Setter
public class OrderDetailAbnormalEvent extends ApplicationEvent {
    private int result;
    private OrderDetail orderDetail;
    private Order order;

    public OrderDetailAbnormalEvent(Object source) {
        super(source);
    }

    public OrderDetailAbnormalEvent(Object source, OrderDetail orderDetail, int result, Order order) {
        super(source);
        this.orderDetail = orderDetail;
        this.result = result;
        this.order = order;
    }
}
